package com.guoyansoft.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘耀诚
 * 历史订单实体
 */
public class HistoricalOrders implements Serializable {
    //主键
    private Integer id;
    //订单编号
    private String no;
    //下单时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderTime;
    //下单电话
    private String customPhone;
    //配送地址
    private String shippingAddress;
    //店铺名称
    private String shopName;
    //配送商品
    private String goodsName;
    //商品数量
    private String goodsNum;
    //商品价格
    private Double goodsAmount;
    //订单状态
    private String state;
    //完工时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date completionTime;
    //配送员
    private String courier;
    //备注
    private String remark;

    public HistoricalOrders() {
    }

    public HistoricalOrders(Integer id, String no, Date orderTime, String customPhone, String shippingAddress, String shopName, String goodsName, String goodsNum, Double goodsAmount, String state, Date completionTime, String courier, String remark) {
        this.id = id;
        this.no = no;
        this.orderTime = orderTime;
        this.customPhone = customPhone;
        this.shippingAddress = shippingAddress;
        this.shopName = shopName;
        this.goodsName = goodsName;
        this.goodsNum = goodsNum;
        this.goodsAmount = goodsAmount;
        this.state = state;
        this.completionTime = completionTime;
        this.courier = courier;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getCustomPhone() {
        return customPhone;
    }

    public void setCustomPhone(String customPhone) {
        this.customPhone = customPhone;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(String goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Double getGoodsAmount() {
        return goodsAmount;
    }

    public void setGoodsAmount(Double goodsAmount) {
        this.goodsAmount = goodsAmount;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getCompletionTime() {
        return completionTime;
    }

    public void setCompletionTime(Date completionTime) {
        this.completionTime = completionTime;
    }

    public String getCourier() {
        return courier;
    }

    public void setCourier(String courier) {
        this.courier = courier;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "HistoricalOrders{" +
                "id=" + id +
                ", no='" + no + '\'' +
                ", orderTime=" + orderTime +
                ", customPhone='" + customPhone + '\'' +
                ", shippingAddress='" + shippingAddress + '\'' +
                ", shopName='" + shopName + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsNum=" + goodsNum +
                ", goodsAmount=" + goodsAmount +
                ", state='" + state + '\'' +
                ", completionTime=" + completionTime +
                ", courier='" + courier + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
